package com.asset.salesforce.form;

import com.asset.salesforce.domain.Account;
import com.asset.salesforce.domain.Lead;

public class BasicView {
	
	private Integer id;
	private String type;
	
	private String name;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public BasicView(Account account ,Lead lead) {
		if(account != null){
			this.id = account.getId();
			this.type = "account";
			this.name = account.getAccountName();
		}else if(lead != null){
			this.id = lead.getId();
			this.type = "lead";
			this.name = lead.getfName();
		}else{
			
		}
	}

	
	
	

}
